package org.demo.work;


/**
 * 
 * @author  
 * @date    2010-10-27
 * @file    org.demo.work.EventManager.java
 */
public class EventManager {

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		WorkListener listener = new LogWorkListener();
		WorkManager manager = new WorkManagerImpl(listener);
		// 
		Work work = new PollEventWork("1");
		manager.startWork(work);
		manager.shutdown();
	}

}
